package com.homework.api_code.client;

import com.homework.util.ResultMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="api-email")
public interface EmailFeignClient {
    @RequestMapping("/api/email/send")
    public ResultMsg send(@RequestParam("email") String email, @RequestParam("code") String code);
}
